7057869a10a09b73f1105c97d0af5e0d790334bd,sagan-site/src/it/java/sagan/search/support/SearchServiceIntegrationTests.java,SearchServiceIntegrationTests,deleteOldApiDocs,#,251

Before Change


        SearchEntry oldApiDoc2 = SearchEntryBuilder.entry()
                .path("http://example.com/content2").title("ApplicationContext")
                .rawContent("This is an api doc for ApplicationContext.")
                .summary("class level description").publishAt("2013-01-01 10:00")
                .version("1.5.3.M1").notCurrent().projectId("project id to delete")
                .type("apiDoc").build();

        searchService.saveToIndex(oldApiDoc2);

After Change


        SearchEntry oldApiDoc2 = SearchEntryBuilder.entry()
                .path("http://example.com/content2").title("ApplicationContext")
                .rawContent("This is an api doc for ApplicationContext.")
                .summary("class level description")
                .version("1.5.3.M1").notCurrent().projectId("project id to delete")
                .api();

        searchService.saveToIndex(oldApiDoc2);